﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Ccit.OA.MsSystemDoc
{
    /// <summary>
    /// DOC_B5(文档编码规则明细)
    /// </summary>
    public class MsCodeRuleDetail
    {
        #region 私有属性
        private string _did;    //主键Id
        private string _codeid; //规则ID
        //一级分类

        private string _onecodenum; //级的设置
        private string _onecons;    //常量
        private string _onemedian;  //位数
        private string _oneseparator;//分割符
        //二级分类
       
        private string _twocodenum;
        private string _twocons;
        private string _twomedian;
        private string _twoseparator;
        //三级分类
       
        private string _threecodenum;
        private string _threecons;
        private string _threemedian;
        private string _threeseparator;
        //四级分类
         
        private string _fourcodenum;
        private string _fourcons;
        private string _fourmedian;
        private string _fourseparator;
        //五级分类
       
        private string _fivecodenum;
        private string _fivecons;
        private string _fivemedian;
        private string _fiveseparator;

        #endregion
        #region 公有属性
        public string DId
        {
            set { _did = value; }
            get { return ((!string.IsNullOrEmpty(_did)) ? _did : ""); }
        }
        public string CodeId
        {
            set { _codeid = value; }
            get { return ((!string.IsNullOrEmpty(_codeid)) ? _codeid : ""); }
        } 
        public string OneCodeNum
        {
            set { _onecodenum = value; }
            get { return ((!string.IsNullOrEmpty(_onecodenum)) ? _onecodenum : ""); }
        }
        public string OneCons
        {
            set { _onecons = value; }
            get { return ((!string.IsNullOrEmpty(_onecons)) ? _onecons : ""); }
        }
        public string OneMedian
        {
            set { _onemedian = value; }
            get { return ((!string.IsNullOrEmpty(_onemedian)) ? _onemedian : ""); }
        }
        public string OneSeparator
        {
            set { _oneseparator = value; }
            get { return ((!string.IsNullOrEmpty(_oneseparator)) ? _oneseparator : ""); }
        }

        public string TwoCodeNum
        {
            set { _twocodenum = value; }
            get { return ((!string.IsNullOrEmpty(_twocodenum)) ? _twocodenum : ""); }
        }
        public string TwoCons
        {
            set { _twocons = value; }
            get { return ((!string.IsNullOrEmpty(_twocons)) ? _twocons : ""); }
        }
        public string TwoMedian
        {
            set { _twomedian = value; }
            get { return ((!string.IsNullOrEmpty(_twomedian)) ? _twomedian : ""); }
        }
        public string TwoSeparator
        {
            set { _twoseparator = value; }
            get { return ((!string.IsNullOrEmpty(_twoseparator)) ? _twoseparator : ""); }
        }

        public string ThreeCodeNum
        {
            set { _threecodenum = value; }
            get { return ((!string.IsNullOrEmpty(_threecodenum)) ? _threecodenum : ""); }
        }
        public string ThreeCons
        {
            set { _threecons = value; }
            get { return ((!string.IsNullOrEmpty(_threecons)) ? _threecons : ""); }
        }
        public string ThreeMedian
        {
            set { _threemedian = value; }
            get { return ((!string.IsNullOrEmpty(_threemedian)) ? _threemedian : ""); }
        }
        public string ThreeSeparator
        {
            set { _threeseparator = value; }
            get { return ((!string.IsNullOrEmpty(_threeseparator)) ? _threeseparator : ""); }
        }

        public string FourCodeNum
        {
            set { _fourcodenum = value; }
            get { return ((!string.IsNullOrEmpty(_fourcodenum)) ? _fourcodenum : ""); }
        }
        public string FourCons
        {
            set { _fourcons = value; }
            get { return ((!string.IsNullOrEmpty(_fourcons)) ? _fourcons : ""); }
        }
        public string FourMedian
        {
            set { _fourmedian = value; }
            get { return ((!string.IsNullOrEmpty(_fourmedian)) ? _fourmedian : ""); }
        }
        public string FourSeparator
        {
            set { _fourseparator = value; }
            get { return ((!string.IsNullOrEmpty(_fourseparator)) ? _fourseparator : ""); }
        }

        public string FiveCodeNum
        {
            set { _fivecodenum = value; }
            get { return ((!string.IsNullOrEmpty(_fivecodenum)) ? _fivecodenum : ""); }
        }
        public string FiveCons
        {
            set { _fivecons = value; }
            get { return ((!string.IsNullOrEmpty(_fivecons)) ? _fivecons : ""); }
        }
        public string FiveMedian
        {
            set { _fivemedian = value; }
            get { return ((!string.IsNullOrEmpty(_fivemedian)) ? _fivemedian : ""); }
        }
        public string FiveSeparator
        {
            set { _fiveseparator = value; }
            get { return ((!string.IsNullOrEmpty(_fiveseparator)) ? _fiveseparator : ""); }
        }

        #endregion
        #region method
        public MsCodeRuleDetail()
        { }
        #endregion
    }
}
